<!--
 * @FileDescription 侧边栏
 * @Author lz
 * @Date 20230314 15:36:19
 * @LastEditors lz
 * @LastEditTime 20230314 15:36:19
-->
<template>
    <div class="sidebarBox">
        <div class=" fox_logo_b_box" v-show="HomeContent.Default.UBANTUVal.value == 1" >
            <img src="/apoImg/fox_logo_b.png" class="fox_logo_b">
        </div>
        <img src="/apoImg/fox_logo_b.png" class="fox_logo_b_2" v-show="HomeContent.Default.UBANTUVal.value != 1" @click="SwitchItems(1)">
        <img src="/apoImg/ln_logo.png" class="ln_logo">
        <img src="/apoImg/ic_gui.png" class="ic_gui">
        <img src="/apoImg/ic_file.png" class="ic_file">
        <img src="/apoImg/ic_jin.png" class="ic_jin">
        <img src="/apoImg/ic_bao.png" class="ic_bao">
        <img src="/apoImg/ic_wen.png" class="ic_wen">
        <img src="/apoImg/communication.png" class="communication">
        <div class=" fox_ic_daima_box" v-show="HomeContent.Default.UBANTUVal.value == 2" >
            <img src="/apoImg/ic_daima.png" class="ic_daima_2">
        </div>
        <img src="/apoImg/ic_daima.png" class="ic_daima"  v-show="HomeContent.Default.UBANTUVal.value != 2" @click="SwitchItems(2)">



        <img src="/apoImg/yudi9.png" class="yudi9">
    </div>
</template>

<script setup lang="ts">
import { ClientMessage } from '@runtime/generate/message/ClientMessage';
import WebSocketComponent from '@runtime/module/WebSocket/WebSocketComponent';
import { reactive, ref, toRefs, onBeforeMount, onMounted, onBeforeUpdate, onUpdated, onUnmounted, StyleValue, defineProps, defineEmits, isReactive, Ref } from 'vue'
import HomeContent from '../../HomeContent';
const state = reactive({

});
async function SwitchItems(index:number){
    HomeContent.Default.UBANTUVal.value = index
    await WebSocketComponent.Default.PostMessageAsync(new ClientMessage.NeolithTrackStartRequest(true))
}
</script>

<style scoped>
.sidebarBox {
    position: absolute;
    left: 0;
    top: 30px;
    width: 66px;
    height: 100%;
    background-color: #6d2e62;
}

.yudi9 {
    width: 30px;
    height: 30px;
    position: absolute;
    left: 18px;
    bottom: 50px;
}

.fox_logo_b_box {
    width: 60px;
    height: 60px;
    background: rgb(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto;
    text-align: center;
    line-height: 60px;
}

.fox_ic_daima_box {
    width: 60px;
    height: 60px;
    background: rgb(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto;
    text-align: center;
    line-height: 60px;
    margin-top: 10px;
}

.fox_logo_b {
    width: 45px;
    height: 46px;
    margin-top: -4px;
}
.fox_logo_b_2{
    width: 45px;
    height: 46px;
    margin-left: 11px;
    margin-bottom: 7px;
    margin-top: 7px;
}
.ln_logo {
    width: 48px;
    height: 52px;
    margin-top: 10px;
    margin-left: 9px;
}

.ic_gui {
    width: 44px;
    height: 43px;
    margin-left: 11px;
    margin-top: 20px;
}

.ic_file {
    width: 55px;
    height: 65px;
    margin-left: 6px;
    margin-top: 15px;
}

.ic_jin {
    width: 49px;
    height: 49px;
    margin-top: 6px;
    margin-left: 9px;
}

.ic_bao {
    width: 43px;
    height: 50px;
    margin-left: 11px;
    margin-top: 15px;
}

.ic_wen {
    width: 43px;
    height: 42px;
    margin-left: 12px;
    margin-top: 21px;
}

.communication {
    width: 47px;
    height: 47px;
    margin-left: 10px;
    margin-top: 22px;
}

.ic_daima {
    width: 45px;
    height: 38px;
    margin-left: 10px;
    margin-top: 22px;
}
.ic_daima_2{
    width: 45px;
    height: 38px;
    margin-right: 1px;
    margin-top: -2px;
}
</style>